package com.douxg.learning.sso.security;

import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @Description
 * @Auther douxg
 * @Date 2022/3/21 10:29
 */
@RestController
public class LoginController {
    @GetMapping("/404")
    public String notFoundPage() {
        return "404";
    }

    @GetMapping("/403")
    public String accessError() {
        return "403";
    }

    @GetMapping("/500")
    public String internalError() {
        return "500";
    }

    @RequestMapping("/index")
    public String adminPage() {
        return "index";
    }

    @GetMapping("/success")
    public String success() {
        return "认证成功,进入success成功";
    }
}
